import { _decorator, Component, Node, Canvas, Camera } from 'cc';
import { FightManage } from './Fight/FightManage';
import { Global } from './Global';
import { FloorManager } from './map/FloorManager';
import { PopupBox } from './Utils/PopupBox';
const { ccclass, property } = _decorator;

@ccclass('GameManage')
export class GameManage extends Component {

    @property({ type: FloorManager })
    floorManager: FloorManager = null

    @property({ type: PopupBox })
    popupBox: PopupBox = null

    @property({ type: FightManage })
    fightManage: FightManage = null

    start() {
        Global.gm = this
        Global.popUtil = this.popupBox
        Global.fightManage = this.fightManage
        this.fightManage.node.active = false
        this.floorManager.loadFloor(0)
    }

    update(deltaTime: number) {

    }
}

